﻿using System.Collections.Generic;
using BReusable.Containers;

namespace StarfleetCommanderDomain.Game
{

	public class EspItemContainer<T> : ImmutableDictionary<string, T>
	{
		public EspItemContainer(IDictionary<string, T> dictionary) : base(dictionary) { }
		public T GetItemIfExists(string key)
		{
			T result;
			if (TryGetValue(key, out result))
				return result;
			else
				return default(T);
		}
	}
}